<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/css/admin.css" rel="stylesheet" type="text/css" />
<script src="/js/admin.js"></script>
<script>
loadjs('admin/list');
loadjs('admin/father');
$('body').ready(function(){
	rea();
	kk();
	$('#kw').def();
})
</script>

<style>
a{
	color:#000;
}
</style>

</head>

<body onresize="kk()">
<div id="kk" class="p20">
<form class="p0 m0" method="post" action="__URL__" name="form" id="form">
<?php $arrr = explode('&#65310;',urldecode(is_utf8($tag_title)==false? mb_convert_encoding($tag_title,'UTF-8','GBK'):$tag_title));?>
<?php if(count($arrr)<2) : $arrr = explode('＞',urldecode(is_utf8($tag_title)==false? mb_convert_encoding($tag_title,'UTF-8','GBK'):$tag_title));endif; ?>
<div class="f28 mb10 h70 title_box" style="line-height:70px;">
<img src="/img/adminiii/content.png" style="margin:0 10px -22px 10px;"/>内容 <span class="f16">&#65310; {$arrr.0} &#65310;<a href="__APP__/sort/index/s/{$s}/file/{$_REQUEST.file}?tag_title={$tag_title|rawurlencode=###}">{$arrr.1}</a>

<?php

$i = count($position);
for($i;$i>0;$i--){
	$v = $position[$i-1];
	$arr[] = '<a title="点击进入 '.$v['title'].' 的子分类" href="__APP__/sort/index/s/'.$s.'/fid/'.$v['id'].'/file/'.$_REQUEST['file'].'?tag_title='.rawurlencode($tag_title).'">'.$v['title'].'</a>';
}
if($arr){
	echo ' &#65310; '. implode(' &#65310; ' ,$arr);
}
?>
</span>
</div>

<div class="mb5">
<input type="button" class="button fl mr10" value="添加" onclick="javascript:window.location.href='__URL__/view/s/{$s}/fid/{$fid}/file/{$_REQUEST.file}?tag_title={$arrr.0|rawurlencode=###}%20&#65310%20{$arrr.1|rawurlencode=###}';"/>
<input type="button" class="button fl mr10" value="刷新" onclick="javascript:window.location.reload();"/>
<input type="button" class="button fl mr10" value="返回上一级" onclick="javascript:window.location.href = '__APP__/sort/index/s/{$s}/fid/<?php
$count = count($position);
if($count<=1){
	$p_fid = 0;
}else{
	$p_fid = $position[1]['id'];
}
echo $p_fid;?>/file/{$_REQUEST.file}?tag_title={$tag_title|rawurlencode=###}'"/>
<!--<input type="button" class="button fl mr50" value="保存排序" onclick="javascript:op('pri')"/>-->
<select class="w100 fl mr5 k" id="act" onchange="javascript:eval($('#act').val())">
  <option value="" selected="selected" >批量操作</option>
  <!--<option value="backup">移到回收站</option>
  <option value="op('onoff','display,1')">显示</option>
  <option value="op('onoff','display,0')">隐藏</option>
  <option value="op('pri')">保存排序</option>-->
  <option value="op('del')">直接删除</option>
  <option value="op('clean')">清空</option>
</select>
<input type="button" class="button fl mr50" value="应用" onclick="javascript:eval($('#act').val())"/>
<input type="text" class="k w80 fl p1 mr5" id="kw" name="kw" value="{$kw}"/>
<input type="submit" class="button fl" value="筛选"/>
<div class="c"></div>
</div>

<div class="mb5 b o lh16" style="height:16px;color:#FF7400;">
<span id="AW">{$act_word|default=$_REQUEST['act_word']}</span>
<span id="load" style="display:none;">正在提交请求...<img src="/img/adminiii/loading.gif" width="16" height="9"/></span>
</div>

<div class="c"></div>
<div class="p7" style="border:1px #BBB solid;">
<div class="fl w25"><input type="checkbox" name="chkall" id="chkall" value="{$v.id}"  onclick="javascript:checkall(this.form)"/></div>
<div class="fl lh18 w300 mr8"><a href="javascript:op('order','title')">标题</a></div>
<div class="c"></div>
</div>

<volist name='list' id='v'>
<div class="content ck" onmouseover="javascript:bg(this);" id="c_{$v.id}">
<div class="fl w25 pt3"><input name="id[]" type="checkbox" value="{$v.id}" id="{$v.id}" onclick="javascript:bg_select(this);"/></div>
<div class="fl w300 mr8">
<span class="lh18" >
<span style="text-decoration:underline" class="black">{$v.title}</span>
</span><br />
<span>
<a href="__URL__/view/id/{$v.id}/s/{$s}/fid/{$fid}?tag_title={$arrr.0|urlencode}%20&#65310%20{$arrr.1|rawurlencode=###}">编辑</a> 
<!--| <a href="#">回收站</a>--> | 
<a href="javascript:op('del','','{$v.id}')">删除</a> | 
<!--<a href="javascript:op('onoff','display,1','{$v.id}')">显示</a> | 
<a href="javascript:op('onoff','display,0','{$v.id}')">隐藏</a> | -->
</span>
</div>
<div class="c"></div>
</div>
</volist>

<?php if (count($list)==0): ?>
<div class="ck tc pt40 pb40">没有数据</div>
<?php endif; ?>

<!--
<div class="ck p7" style="border-bottom:1px solid #000;">
<div class="fl w25"><input type="checkbox" name="id[]"  value="{$v.id}" onclick="checkall(this.form)"/></div>
<div class="fl lh18 w300">标题</div>
<div class="fl lh18 w50">排序</div>
<div class="fr w50 tc w100">日期</div>
<div class="c"></div>
</div>
-->

<div class="fr mt8 pb20 pagebar">
<php>include('adminiii/Lib/Block/pagebar.php');</php>
</div>

<div <?='class="hide"'?>>
<input type="text" name="act"	id="act"	value="" /> act<br />
<input type="text" name="value"	id="value"	value="" /> value<br />
<input type="text" name="fid"	id="fid" 	value="{$fid}" /> fid<br />
<input type="text" name="s"	id="s" 	value="{$s}" /> s<br />
<input type="text" name="order"	id="order"	value="{$order}" /> order<br />
<input type="text" name="file"	id="file"	value="{$_REQUEST.file}" /> order<br />
<input type="text" name="by"	id="by"		value="{$by}" /> by<br />
<input type="text" name="p"		id="p"		value="{$p}" /> p<br />
<input type="text" name="ps"	id="ps"		value="{$ps}" /> ps<br />
<input type="text" name="act_word"	id="act_word"		value="{$_REQUEST.act_word|default=$act_word}" /> act_word<br />
<input type="text" name="tag_title"		id="tag_title"		value="{$tag_title}" /> tag_title<br />
</div>

</form>
</div kk>
</body>
</html>